|
Oracle® Rules Palette Release 9.1.0.0.0 E15811-01 |
A user defined function contains common calculations or functionality that can be broken out into distinct and logical pieces. A function can be used repeatedly by calling the function. Functions define what values need to be input in order for the calculation to run correctly. Functions also define what output will return.
A function is a type of business rule that is created at the global level with a Function rule type. Functions consist of four components:
Input parameters
Output parameters
Return value
Math section
|
Element/Tag |
Definition |
Attribute |
Element/Attribute Value and Description |
|
<Function>
|
This is the start and end tag for the business rule. |
NAME |
Name of the Function. Configuration standards state to begin the function name with Function-NameofFunction" |
|
RETURN |
MathVariable name to be returned. Configuration standards state to begin the return variable with an r then the name of the MathVariable. | ||
|
DATATYPE |
Date: date Decimal: decimal value Boolean: true or false | ||
|
<Parameters> |
Contains each applicable parameter. |
|
|
|
<Parameter> |
|
TYPE
|
INPUT or OUTPUT. The value of the TYPE attribute indicates whether the parameter inputs or outputs values. The value of the element is the MathVariable name that is being used. |
|
<Math> |
See Math section. |
|
|
<Function NAME="Function-XXXXX" RETURN=”r;rYYYYYY" DATATYPE="TEXT">
<Parameters>
<Parameter TYPE="INPUT">pMMMMM</Parameter>
<Parameter TYPE="OUTPUT">oFFFFF</Parameter>
</Parameters>
<Math>
<MathVariables>
<MathVariable VARIABLENAME="oFFFFF"></MathVariable>
<MathVariable VARIABLENAME="rYYYYYY"></MathVariable>
</MathVariables>
</Math>
</Function>
Note: Attending the Oracle Insurance Policy Administration Configuration IV class offered by Oracle University is highly recommended. This class overviews advanced Math configuration fundamentals, which are required to configure correctly.